Timm Bäder [Tue, 11 Oct 2016 12:41:30 +0000 (14:41 +0200)]
gtkdnd: Remove gtk_drag_begin
Timm Bäder [Tue, 11 Oct 2016 12:37:22 +0000 (14:37 +0200)]
gtkmain: Remove deprecated key snooper API
Timm Bäder [Tue, 11 Oct 2016 11:34:49 +0000 (13:34 +0200)]
treeview: Remove unused style properties
Timm Bäder [Tue, 11 Oct 2016 11:29:05 +0000 (13:29 +0200)]
bbox: Remove style properties
Timm Bäder [Tue, 11 Oct 2016 11:16:18 +0000 (13:16 +0200)]
gtkdialog: Remove style properties
Timm Bäder [Tue, 11 Oct 2016 11:10:02 +0000 (13:10 +0200)]
colorbutton: Remove deprecated API
Timm Bäder [Tue, 11 Oct 2016 10:07:33 +0000 (12:07 +0200)]
menu: Remove vertical/horizontal-offset style properties
Timm Bäder [Tue, 11 Oct 2016 07:48:26 +0000 (09:48 +0200)]
notebook: Remove deprecated public API
Timm Bäder [Tue, 11 Oct 2016 07:44:36 +0000 (09:44 +0200)]
toolbar: Remove button-relief style property
And in turn also public API to set the button relief on the toolbar as
well as the vfunc from GtkToolShell.
Timm Bäder [Tue, 11 Oct 2016 07:44:21 +0000 (09:44 +0200)]
textview: Remove error-underline-color style property
Timm Bäder [Tue, 11 Oct 2016 07:33:12 +0000 (09:33 +0200)]
toolbutton: Remove icon-spacing style property
Benjamin Otte [Mon, 17 Oct 2016 22:22:04 +0000 (00:22 +0200)]
separatortoolitem: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:54 +0000 (00:21 +0200)]
spinbutton: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:45 +0000 (00:21 +0200)]
switch: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:33 +0000 (00:21 +0200)]
pathbar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:17 +0000 (00:21 +0200)]
paned: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:20:47 +0000 (00:20 +0200)]
notebook: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:20:32 +0000 (00:20 +0200)]
menu: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 22:20:17 +0000 (00:20 +0200)]
layout: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 22:20:02 +0000 (00:20 +0200)]
iconview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:23:17 +0000 (20:23 +0200)]
toolitemgroup: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:23:04 +0000 (20:23 +0200)]
toolitem: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:22:47 +0000 (20:22 +0200)]
toolbar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:22:33 +0000 (20:22 +0200)]
popover: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:22:16 +0000 (20:22 +0200)]
menushell: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:55 +0000 (20:21 +0200)]
label: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:21:42 +0000 (20:21 +0200)]
menuitem: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:21:21 +0000 (20:21 +0200)]
overlay: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:10 +0000 (20:21 +0200)]
listbox: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:00 +0000 (20:21 +0200)]
flowbox: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:48 +0000 (20:20 +0200)]
fixed: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:32 +0000 (20:20 +0200)]
scrolledwindow: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:14 +0000 (20:20 +0200)]
revealer: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:05 +0000 (20:20 +0200)]
stack: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:49 +0000 (20:19 +0200)]
textview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:32 +0000 (20:19 +0200)]
viewport: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:10 +0000 (20:19 +0200)]
toolpalette: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:18:54 +0000 (20:18 +0200)]
glarea: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:18:33 +0000 (20:18 +0200)]
expander: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:18:08 +0000 (20:18 +0200)]
window: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:17:03 +0000 (20:17 +0200)]
tests: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:16:34 +0000 (20:16 +0200)]
treeviewcolumn: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:16:12 +0000 (20:16 +0200)]
treeview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:15:22 +0000 (20:15 +0200)]
eventbox: Use gdk_window_new_input() and gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:15:05 +0000 (20:15 +0200)]
entry: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:14:49 +0000 (20:14 +0200)]
drawingarea: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:14:32 +0000 (20:14 +0200)]
colorswatch: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:14:09 +0000 (20:14 +0200)]
calendar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:13:46 +0000 (20:13 +0200)]
button: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:11:23 +0000 (20:11 +0200)]
API: gdk: Add gdk_window_new_child() and gdk_window_new_input()
This is an attempt to get rid of gdk_window_new() for more specific use
cases. These 2 are for client-side windows - regular ones and input-only
ones resepectively.
So far all those functions just call into gdk_window_new().
Timm Bäder [Mon, 17 Oct 2016 16:34:07 +0000 (18:34 +0200)]
colorscale: Avoid invalid write
Jordi Mas [Mon, 17 Oct 2016 16:23:29 +0000 (18:23 +0200)]
Fix to Catalan translation
Benjamin Otte [Mon, 17 Oct 2016 15:41:03 +0000 (17:41 +0200)]
cssprovider: Return void, not TRUE
Parsing a css file always succeeds as CSS can recover from parsing
errors.
Benjamin Otte [Mon, 17 Oct 2016 14:09:12 +0000 (16:09 +0200)]
cssprovider: Remove GError out argument from load functions
People should use the GtkCssProvider::parsing-error signal instead.
Ben Iofel [Mon, 17 Oct 2016 14:36:26 +0000 (10:36 -0400)]
textbufferserialize: declare set_error as G_GNUC_PRINTF
And fix a missing format argument
Ben Iofel [Mon, 17 Oct 2016 14:14:19 +0000 (10:14 -0400)]
colorscale: modify loop variables in loop body
Emmanuele Bassi [Mon, 17 Oct 2016 14:12:21 +0000 (15:12 +0100)]
build: Use correct compiler flag
The name is -Wformat-nonliteral.
Garrett Regier [Mon, 17 Oct 2016 14:02:37 +0000 (07:02 -0700)]
gtk+: Fix GI warnings about missing parameters
These were removed for GTK+ 4.
Emmanuele Bassi [Mon, 17 Oct 2016 13:56:38 +0000 (14:56 +0100)]
broadway: Remove redundant declaration
Emmanuele Bassi [Mon, 17 Oct 2016 13:51:16 +0000 (14:51 +0100)]
gtk/utils: Include stdio.h
We need it because of the declaration using FILE*.
Ignacio Casal Quinteiro [Mon, 17 Oct 2016 11:02:26 +0000 (13:02 +0200)]
gtkicontheme: check if the context quark string is not null
On windows you might not have a theme installed by default which
means that when trying to create the context quark it will fail.
If then we try to replace a NULL key in the hash table it will crash.
https://bugzilla.gnome.org/show_bug.cgi?id=769859
Emmanuele Bassi [Mon, 17 Oct 2016 10:52:00 +0000 (11:52 +0100)]
Remove redundant variable declaration
The inner `var` declaration is shadowing the outer one.
Emmanuele Bassi [Sat, 15 Oct 2016 20:39:31 +0000 (21:39 +0100)]
build: Add various compiler warnings and errors
Just like GLib, GTK+ would benefit from getting warnings and errors from
the compilers.
We check various, common warnings, especially for a future use of C99;
additionally, we promote some warnings to errors, in order to ensure
that simple mistakes are caught during the development phase, before
they are submitted to the code repository.
Emmanuele Bassi [Mon, 17 Oct 2016 10:43:06 +0000 (11:43 +0100)]
notebook: Remove redundant variable declarations
We're already declaring notebook and priv at the top of the function,
and assigning them to the same values.
Emmanuele Bassi [Mon, 17 Oct 2016 10:34:36 +0000 (11:34 +0100)]
icontheme: Drop unnecessary allocation
Use a static array for the known icon sizes, now that we don't allow
registering custom icon sizes any more. This allows us to cut a one-off
allocation that makes Valgrind sad.
Emmanuele Bassi [Sat, 15 Oct 2016 20:38:21 +0000 (21:38 +0100)]
Avoid variable shadowing in GtkShortcutsSection
Emmanuele Bassi [Sat, 15 Oct 2016 20:35:10 +0000 (21:35 +0100)]
Remove declarations for getresuid()/getresgid()
Back in 2001, their prototypes were missing from system headers, but
since glibc 2.3.2 they are defined in unistd.h if _GNU_SOURCE is
defined.
Emmanuele Bassi [Sat, 15 Oct 2016 20:34:52 +0000 (21:34 +0100)]
gtk: Add missing function declarations
Emmanuele Bassi [Sat, 15 Oct 2016 20:33:11 +0000 (21:33 +0100)]
text: Constify field of GtkTextLineSegmentClass
We only use it internally for statically allocated structures, with
static strings, so there's no reason for it to be a `char*`.
Emmanuele Bassi [Sat, 15 Oct 2016 20:32:51 +0000 (21:32 +0100)]
gtk: Use appropriate constness for variables
Emmanuele Bassi [Sat, 15 Oct 2016 20:30:47 +0000 (21:30 +0100)]
filechooserwidget: Rename error variable
Avoid shadowing an existing error.
Emmanuele Bassi [Sat, 15 Oct 2016 20:30:27 +0000 (21:30 +0100)]
filechooserbutton: Remove unnecessary declaration
Emmanuele Bassi [Sat, 15 Oct 2016 20:29:45 +0000 (21:29 +0100)]
gtk: Mark internal functions as static
These functions are only used within their compilation unit.
Emmanuele Bassi [Sat, 15 Oct 2016 20:27:49 +0000 (21:27 +0100)]
colorscale: Rename variables
Avoid shadowing existing variables.
Emmanuele Bassi [Sat, 15 Oct 2016 20:27:23 +0000 (21:27 +0100)]
cellview: Constify argument
Emmanuele Bassi [Sat, 15 Oct 2016 20:24:42 +0000 (21:24 +0100)]
gtk: Cast static strings assigned to non-const variables
GtkTargetEntry.target is particularly egregious, and it should really be
constified.
Emmanuele Bassi [Sat, 15 Oct 2016 20:22:48 +0000 (21:22 +0100)]
gtk: Include the appropriate headers
Emmanuele Bassi [Sat, 15 Oct 2016 20:20:35 +0000 (21:20 +0100)]
widget: Make gtk_widget_get_parent_muxer() as static
It's a private function, used only inside gtkwidget.c and not declared
in any private header.
Emmanuele Bassi [Sat, 15 Oct 2016 20:19:39 +0000 (21:19 +0100)]
inspector: Mark internal function as static
Emmanuele Bassi [Sat, 15 Oct 2016 20:19:12 +0000 (21:19 +0100)]
Remove redundant declarations
Emmanuele Bassi [Sat, 15 Oct 2016 20:13:04 +0000 (21:13 +0100)]
gdk/x11: Constify argument
Emmanuele Bassi [Sat, 15 Oct 2016 19:38:13 +0000 (20:38 +0100)]
Add private header for GtkTextView
This allows us to declare the symbols that are currently used inside
gtktextdisplay.c without incurring in the wrath of the compiler.
Emmanuele Bassi [Fri, 14 Oct 2016 18:36:50 +0000 (19:36 +0100)]
Remove redundant declarations
Emmanuele Bassi [Fri, 14 Oct 2016 18:35:59 +0000 (19:35 +0100)]
Fix _gtk_get_slowdown()
We need to pass void as the argument type.
Emmanuele Bassi [Fri, 14 Oct 2016 18:35:40 +0000 (19:35 +0100)]
Remove redundant declarations
Emmanuele Bassi [Fri, 14 Oct 2016 18:34:51 +0000 (19:34 +0100)]
Include the appropriate headers
The GtkStackAccessible implementation should include the private header,
and the private header should include the public one.
Emmanuele Bassi [Fri, 14 Oct 2016 18:34:29 +0000 (19:34 +0100)]
Remove redundant declarations
Emmanuele Bassi [Fri, 14 Oct 2016 18:33:53 +0000 (19:33 +0100)]
Use appropriate const declaration for static strings
Emmanuele Bassi [Fri, 14 Oct 2016 18:33:28 +0000 (19:33 +0100)]
Remove re-declarations of public functions
Emmanuele Bassi [Fri, 14 Oct 2016 18:33:03 +0000 (19:33 +0100)]
Remove redundant declaration
Emmanuele Bassi [Mon, 17 Oct 2016 10:02:16 +0000 (11:02 +0100)]
stylecontext: Remove gtk_gradient_resolve_for_context()
Just like we remove gtk_gradient_resolve().
Emmanuele Bassi [Mon, 17 Oct 2016 09:41:46 +0000 (10:41 +0100)]
textview: Remove commented block
It's referencing gdk_cairo_create(), which does not exist any more.
Emmanuele Bassi [Mon, 17 Oct 2016 09:43:55 +0000 (10:43 +0100)]
gdk: Comment out gdk_cairo_create()
Emmanuele Bassi [Mon, 17 Oct 2016 09:42:48 +0000 (10:42 +0100)]
gdk: Remove mentions of gdk_cairo_create()
This function does not exist any more.
Matthias Clasen [Sun, 16 Oct 2016 18:09:12 +0000 (14:09 -0400)]
Fix the doc build
Remove no-longer-existing types.
Piotr Drąg [Sun, 16 Oct 2016 17:49:54 +0000 (19:49 +0200)]
Update POTFILES.in
Benjamin Otte [Thu, 13 Oct 2016 23:59:22 +0000 (01:59 +0200)]
gdk: Remove old code to create drawing context
You now have to use a GdkDrawingContext
Benjamin Otte [Sat, 15 Oct 2016 03:17:45 +0000 (05:17 +0200)]
tests: Remove custom preview from print-editor
It's using gdk_cairo_create() to do the drawing, which is unsupported.
Benjamin Otte [Sat, 15 Oct 2016 03:02:20 +0000 (05:02 +0200)]
tests: Remove code from testinput that does nothing
Benjamin Otte [Tue, 11 Oct 2016 14:26:16 +0000 (16:26 +0200)]
gdk: Remove gdk_window_set_debug_updates()
The update tracking code was ugly and using deprecated drawing APIs. It
was also in the wrong place.
So instead of trying to keep it working, I'll remove it. We need to find
a better way to put it and make it work there.